package com.cyl.wms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import com.ruoyi.common.core.domain.BaseAudit;
import lombok.Data;

/**
 * 
 * @TableName wms_purchase_order_details
 */
@TableName(value ="wms_purchase_order_details")
@Data
public class PurchaseOrderDetails extends BaseAudit {
    /**
     * 订单明细ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 单号
     */
    private String orderNumber;

    /**
     * 分类ID
     */
    private Integer categoryId;

    /**
     * 分类名称
     */
    private String categoryName;

    /**
     * 型号ID
     */
    private Integer modelId;

    /**
     * 型号名称
     */
    private String modelName;

    /**
     * 厚度ID
     */
    private Integer thicknessId;

    /**
     * 厚度名称
     */
    private String thicknessName;

    /**
     * 规格ID
     */
    private Integer specificationId;

    /**
     * 规格名称
     */
    private String specificationName;

    /**
     * 仓库ID
     */
    private Integer warehouseId;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 仓位ID
     */
    private Integer warehousePositionId;

    /**
     * 仓位名称
     */
    private String warehousePositionName;

    /**
     * 性质ID
     */
    private Integer natureId;

    /**
     * 性质名称
     */
    private String natureName;

    /**
     * 单位ID
     */
    private Integer unitId;

    /**
     * 单位名称
     */
    private String unitName;

    /**
     * 需求时间
     */
    private Date demandDate;

    /**
     * 预计到货时间
     */
    private Date expectedArrivalDate;

    /**
     * 在途信息
     */
    private String inTransitInformation;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 件数
     */
    private Integer pieceCount;

    /**
     * 件数单位
     */
    private String pieceUnit;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    /**
     * 计价数量
     */
    private BigDecimal valuationQuantity;

    /**
     * 计价单位
     */
    private String valuationUnit;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 税率
     */
    private BigDecimal taxRate;

    /**
     * 含税单价
     */
    private BigDecimal taxInclusivePrice;

    /**
     * 含税总价
     */
    private BigDecimal taxInclusiveTotalPrice;

    /**
     * 宽幅ID
     */
    private Integer widthId;

    /**
     * 宽幅名称
     */
    private String widthName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PurchaseOrderDetails other = (PurchaseOrderDetails) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderNumber() == null ? other.getOrderNumber() == null : this.getOrderNumber().equals(other.getOrderNumber()))
            && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
            && (this.getCategoryName() == null ? other.getCategoryName() == null : this.getCategoryName().equals(other.getCategoryName()))
            && (this.getModelId() == null ? other.getModelId() == null : this.getModelId().equals(other.getModelId()))
            && (this.getModelName() == null ? other.getModelName() == null : this.getModelName().equals(other.getModelName()))
            && (this.getThicknessId() == null ? other.getThicknessId() == null : this.getThicknessId().equals(other.getThicknessId()))
            && (this.getThicknessName() == null ? other.getThicknessName() == null : this.getThicknessName().equals(other.getThicknessName()))
            && (this.getSpecificationId() == null ? other.getSpecificationId() == null : this.getSpecificationId().equals(other.getSpecificationId()))
            && (this.getSpecificationName() == null ? other.getSpecificationName() == null : this.getSpecificationName().equals(other.getSpecificationName()))
            && (this.getWarehouseId() == null ? other.getWarehouseId() == null : this.getWarehouseId().equals(other.getWarehouseId()))
            && (this.getWarehouseName() == null ? other.getWarehouseName() == null : this.getWarehouseName().equals(other.getWarehouseName()))
            && (this.getWarehousePositionId() == null ? other.getWarehousePositionId() == null : this.getWarehousePositionId().equals(other.getWarehousePositionId()))
            && (this.getWarehousePositionName() == null ? other.getWarehousePositionName() == null : this.getWarehousePositionName().equals(other.getWarehousePositionName()))
            && (this.getNatureId() == null ? other.getNatureId() == null : this.getNatureId().equals(other.getNatureId()))
            && (this.getNatureName() == null ? other.getNatureName() == null : this.getNatureName().equals(other.getNatureName()))
            && (this.getUnitId() == null ? other.getUnitId() == null : this.getUnitId().equals(other.getUnitId()))
            && (this.getUnitName() == null ? other.getUnitName() == null : this.getUnitName().equals(other.getUnitName()))
            && (this.getDemandDate() == null ? other.getDemandDate() == null : this.getDemandDate().equals(other.getDemandDate()))
            && (this.getExpectedArrivalDate() == null ? other.getExpectedArrivalDate() == null : this.getExpectedArrivalDate().equals(other.getExpectedArrivalDate()))
            && (this.getInTransitInformation() == null ? other.getInTransitInformation() == null : this.getInTransitInformation().equals(other.getInTransitInformation()))
            && (this.getRemarks() == null ? other.getRemarks() == null : this.getRemarks().equals(other.getRemarks()))
            && (this.getPieceCount() == null ? other.getPieceCount() == null : this.getPieceCount().equals(other.getPieceCount()))
            && (this.getPieceUnit() == null ? other.getPieceUnit() == null : this.getPieceUnit().equals(other.getPieceUnit()))
            && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()))
            && (this.getUnitPrice() == null ? other.getUnitPrice() == null : this.getUnitPrice().equals(other.getUnitPrice()))
            && (this.getValuationQuantity() == null ? other.getValuationQuantity() == null : this.getValuationQuantity().equals(other.getValuationQuantity()))
            && (this.getValuationUnit() == null ? other.getValuationUnit() == null : this.getValuationUnit().equals(other.getValuationUnit()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getTaxRate() == null ? other.getTaxRate() == null : this.getTaxRate().equals(other.getTaxRate()))
            && (this.getTaxInclusivePrice() == null ? other.getTaxInclusivePrice() == null : this.getTaxInclusivePrice().equals(other.getTaxInclusivePrice()))
            && (this.getTaxInclusiveTotalPrice() == null ? other.getTaxInclusiveTotalPrice() == null : this.getTaxInclusiveTotalPrice().equals(other.getTaxInclusiveTotalPrice()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getWidthId() == null ? other.getWidthId() == null : this.getWidthId().equals(other.getWidthId()))
            && (this.getWidthName() == null ? other.getWidthName() == null : this.getWidthName().equals(other.getWidthName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderNumber() == null) ? 0 : getOrderNumber().hashCode());
        result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
        result = prime * result + ((getCategoryName() == null) ? 0 : getCategoryName().hashCode());
        result = prime * result + ((getModelId() == null) ? 0 : getModelId().hashCode());
        result = prime * result + ((getModelName() == null) ? 0 : getModelName().hashCode());
        result = prime * result + ((getThicknessId() == null) ? 0 : getThicknessId().hashCode());
        result = prime * result + ((getThicknessName() == null) ? 0 : getThicknessName().hashCode());
        result = prime * result + ((getSpecificationId() == null) ? 0 : getSpecificationId().hashCode());
        result = prime * result + ((getSpecificationName() == null) ? 0 : getSpecificationName().hashCode());
        result = prime * result + ((getWarehouseId() == null) ? 0 : getWarehouseId().hashCode());
        result = prime * result + ((getWarehouseName() == null) ? 0 : getWarehouseName().hashCode());
        result = prime * result + ((getWarehousePositionId() == null) ? 0 : getWarehousePositionId().hashCode());
        result = prime * result + ((getWarehousePositionName() == null) ? 0 : getWarehousePositionName().hashCode());
        result = prime * result + ((getNatureId() == null) ? 0 : getNatureId().hashCode());
        result = prime * result + ((getNatureName() == null) ? 0 : getNatureName().hashCode());
        result = prime * result + ((getUnitId() == null) ? 0 : getUnitId().hashCode());
        result = prime * result + ((getUnitName() == null) ? 0 : getUnitName().hashCode());
        result = prime * result + ((getDemandDate() == null) ? 0 : getDemandDate().hashCode());
        result = prime * result + ((getExpectedArrivalDate() == null) ? 0 : getExpectedArrivalDate().hashCode());
        result = prime * result + ((getInTransitInformation() == null) ? 0 : getInTransitInformation().hashCode());
        result = prime * result + ((getRemarks() == null) ? 0 : getRemarks().hashCode());
        result = prime * result + ((getPieceCount() == null) ? 0 : getPieceCount().hashCode());
        result = prime * result + ((getPieceUnit() == null) ? 0 : getPieceUnit().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        result = prime * result + ((getUnitPrice() == null) ? 0 : getUnitPrice().hashCode());
        result = prime * result + ((getValuationQuantity() == null) ? 0 : getValuationQuantity().hashCode());
        result = prime * result + ((getValuationUnit() == null) ? 0 : getValuationUnit().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getTaxRate() == null) ? 0 : getTaxRate().hashCode());
        result = prime * result + ((getTaxInclusivePrice() == null) ? 0 : getTaxInclusivePrice().hashCode());
        result = prime * result + ((getTaxInclusiveTotalPrice() == null) ? 0 : getTaxInclusiveTotalPrice().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getWidthId() == null) ? 0 : getWidthId().hashCode());
        result = prime * result + ((getWidthName() == null) ? 0 : getWidthName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderNumber=").append(orderNumber);
        sb.append(", categoryId=").append(categoryId);
        sb.append(", categoryName=").append(categoryName);
        sb.append(", modelId=").append(modelId);
        sb.append(", modelName=").append(modelName);
        sb.append(", thicknessId=").append(thicknessId);
        sb.append(", thicknessName=").append(thicknessName);
        sb.append(", specificationId=").append(specificationId);
        sb.append(", specificationName=").append(specificationName);
        sb.append(", warehouseId=").append(warehouseId);
        sb.append(", warehouseName=").append(warehouseName);
        sb.append(", warehousePositionId=").append(warehousePositionId);
        sb.append(", warehousePositionName=").append(warehousePositionName);
        sb.append(", natureId=").append(natureId);
        sb.append(", natureName=").append(natureName);
        sb.append(", unitId=").append(unitId);
        sb.append(", unitName=").append(unitName);
        sb.append(", demandDate=").append(demandDate);
        sb.append(", expectedArrivalDate=").append(expectedArrivalDate);
        sb.append(", inTransitInformation=").append(inTransitInformation);
        sb.append(", remarks=").append(remarks);
        sb.append(", pieceCount=").append(pieceCount);
        sb.append(", pieceUnit=").append(pieceUnit);
        sb.append(", quantity=").append(quantity);
        sb.append(", unitPrice=").append(unitPrice);
        sb.append(", valuationQuantity=").append(valuationQuantity);
        sb.append(", valuationUnit=").append(valuationUnit);
        sb.append(", amount=").append(amount);
        sb.append(", taxRate=").append(taxRate);
        sb.append(", taxInclusivePrice=").append(taxInclusivePrice);
        sb.append(", taxInclusiveTotalPrice=").append(taxInclusiveTotalPrice);
        sb.append(", widthId=").append(widthId);
        sb.append(", widthName=").append(widthName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}